package gao.xiaolei.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class TaskInDto {

    private Task task;//任务内容

    private List<String> receivers;//任务收件人

    private List<TaskLink> link;//任务链接

    private List<TaskAttached> attacheds;//任务的附件

    public TaskInDto(Task task, List<String> receivers) {
        this.task = task;
        this.receivers = receivers;
        this.link=new ArrayList<>(0);//防止任务服务因为空指针报异常
        this.attacheds=new ArrayList<>(0);
    }

    public TaskInDto() {
    }
}
